<!-- <!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Login</title>
    </head>
    <body>
        <form action="{% url 'app_demo:login' %}" method="post">{% csrf_token %}
            用户名 <input type="text" name="user">
            密码 <input type="password" name="pwd">
            <input type="submit">
        </form>
    </body>
</html> -->

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Login</title>
</head>
<body>
<!--强调：app_demo:login必须加引号-->
<form action="{% url 'app_demo:login' %}" method="POST">
    {% csrf_token %}
    <p>用户名: <input type="text" name="username"></p>
    <p>密码: <input type="password" name="pwd"></p>
    <input type="submit">
</form>
</body>
</html>

